package com.example.provider.dao;

import com.example.common.entity.Ad;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author zxm
 * @email 1625012165@qq.com
 * @date 2020-09-11 13:56:45
 */
@Mapper
public interface AdDao{
    List<Ad> findAd(); //管理员查看
    void upAd(Ad ad); //上架
//    void insertAding(Ad ad); //加入上架的广告
    List<Ad>  findAding(); //找到上架的广告
    void deleteAding(Ad ad); //删除

    void insertAdByCompany(Ad ad);

    void insertAdByWorkroom(Ad ad);

    List<Ad> searchByCompanyId(Ad ad);

    List<Ad> searchByWorkroomId(Ad ad);
}
